Writing good code

Software can become very complicated and span over many thousands of lines of code. If code is poorly written then problems will arise with being able to maintain it. If bugs arise in poorly written code then they will be very difficult to fix. This situation is made even worse if the origonal coder is not the person who is maintaining the code.

It is very common for code to be developed by one person and maintained by someone else. In order to ensure that the code is easyily maintained the coder should

  1. Use comments
  2. Use indentation
  3. Use modules
  4. Use sensible variable names

A lot of companies will insist that all programmers follow a set of rules when coding known as coding standards. These tend to vary from company to company but are always based on the above ideas. You can find out more by clicking on the related links.